<?php
    @session_start();
    class HomeController extends AppController {

        var $name = 'Home';
        var $uses = array();

        function index(){

            $this->render("index");
        }

        function backup(){
            $this->render("backup", "ajax");
        }

        function backupContents(){
            $backup = $this->_backup();

            $this->set("backup", $backup);

            $this->render("backup_contents", "ajax");
        }

        function sendMail(){
            set_time_limit(30);
            $backup = $_POST["backup"];
            $this->_sendBackupMail($backup);
            $this->render("send_mail", "ajax");
        }

		
    }
?>